﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;

namespace WindowsFormsThreadTest
{
    public class MyClass
    {

        public event EventHandler Done;

        public int ID { get; set; }

        public string Name { get; set; }

        public void DoLongWork()
        {
            for (int i = 0; i < 50; i++)
            {
                Thread.Sleep(100);
            }
            

            Done(Name, null);
        }

    }
}
